package com.meisiabc.app.repository.db.manager;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.meisiabc.app.repository.db.entity.RecommendMsg;
import com.meisiabc.app.repository.db.mapper.RecommendMsgMapper;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class RecommendMsgManager extends ServiceImpl<RecommendMsgMapper, RecommendMsg> {
    public List<RecommendMsg> selectByMobile(String mobile) {
        return list(new QueryWrapper<RecommendMsg>().eq("recommender_phone", mobile));
    }
}
